Skip to main content

System requirements

Before installing C.A.R. 911, ensure your system meets the following requirements:

PHP version

  • PHP 7.3 or higher (PHP 8.0+ supported)
  • Required PHP extensions:
    • OpenSSL
    • PDO
    • Mbstring
    • Tokenizer
    • XML
    • Ctype
    • JSON
    • BCMath

Database

  • MySQL 5.7+ or MariaDB 10.3+

Package manager

  • Composer (latest stable version recommended)
C.A.R. 911 is built on Laravel 8.75, which requires PHP 7.3 as the minimum version. For optimal performance and security, we recommend using PHP 8.0 or higher.

Installation steps

Follow these steps to install C.A.R. 911 on your server:
1

Install dependencies

Navigate to the project directory and install all PHP dependencies using Composer:
This will install the Laravel framework along with required packages including:
  • Laravel Sanctum for API authentication
  • Spatie Laravel Permission for role management
  • Maatwebsite Excel for report exports
  • PHPWord for document generation
2

Create environment file

Copy the example environment file to create your configuration:
This creates a new .env file where you’ll configure your application settings.
3

Generate application key

Generate a unique encryption key for your application:
This command automatically updates your .env file with a secure APP_KEY value.
4

Configure database connection

Open your .env file and update the database configuration:
Ensure your database user has sufficient privileges to create tables, indexes, and foreign keys.
5

Run migrations and seed data

Initialize the database schema and populate it with default data:
This command will:
  • Create all necessary database tables
  • Set up the permission and role structure
  • Seed initial data for testing and development

Verify installation

After completing the installation steps, verify that C.A.R. 911 is working correctly:

Start the development server

The application should now be accessible at http://localhost:8000.

Check the database connection

Verify that your database is properly configured:
This command displays the status of all migrations and confirms database connectivity.

Key packages installed

C.A.R. 911 includes several important packages that power its functionality:

Troubleshooting

Composer memory limit

If you encounter memory limit errors during composer install, increase PHP’s memory limit:

Permission errors

Ensure the web server has write permissions to storage and cache directories:

Migration failures

If migrations fail, check that:
  • Your database credentials are correct in .env
  • The database exists and is accessible
  • Your database user has CREATE, ALTER, and DROP privileges

Next steps

Now that C.A.R. 911 is installed, proceed to configure your environment variables and application settings.